package org.siam.impl.schemas {
	
	import org.siam.core.schemas.ISchemaProperty;

	public class SchemaProperty implements ISchemaProperty {
		
		public static const NULL:ISchemaProperty = new SchemaPropertyNull();
		
		private var _name:String;
		private var _format:String;
		
		public function SchemaProperty() {
		}
		
		public function get name():String {
			return _name;
		}

		public function get format():String {
			return _format;
		}
		
		public static function newInstance(configuration:XML):ISchemaProperty {
			var instance:SchemaProperty = new SchemaProperty();
			
			instance._name = configuration["@name"];
			instance._format = configuration["@format"];
			
			return instance;
		}
	}
}